let request =  params =>new Promise((resolve,reject) => {
  let {url,data,methods,header} = params
  wx.request({
    url,
    data,
    methods,
    header,
    success:res=>{
      console.log(res);
    },
    fail:err=>{
      console.log(err);
    }
  })
})
export default request